package com.portomx.agenda.bo.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.portomx.agenda.bo.PersonaBo;
import com.portomx.agenda.dao.PersonaDao;
import com.portomx.agenda.model.Persona;

@Service
public class PersonaBoImpl implements PersonaBo {

	@Autowired
	private PersonaDao personaDao;

	@Override
	public void create(Persona persona) {
		personaDao.create(persona);

	}

	@Override
	public Collection<Persona> getAll() {
		return personaDao.getAll();
	}

	@Override
	public Persona read(Long id) {
		return personaDao.read(id);
	}

	@Override
	public void update(Persona persona) {
		personaDao.update(persona);
	}
}
